package xyz.hujf.otherbase.伪共享;

/**
 * @author Hujf
 * @title: TestForContent
 * @date 2021-04-26 17:47
 * @description: TODO
 */
public class TestForContent {

    static final int LINE_NUM =1024;
    static final int COLUM_NUM =1024;

    public static void main(String[] args) {
        long [][]array = new long[LINE_NUM][COLUM_NUM];
        long startTime = System.currentTimeMillis();

        for(int i=0;i<LINE_NUM;i++){
            for(int j=0;j<COLUM_NUM;j++){
                array[i][j] = i*2+j;
            }
        }

        long emdTime = System.currentTimeMillis();
        long cache = emdTime - startTime;
        System.out.println("cache time :"+cache);
    }

}
